(define-module (rain lxc)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix packages)
  #:use-module (gnu packages)
  #:use-module (gnu packages xorg)
  #:use-module (gnu packages image)
  #:use-module (gnu packages lua)
  #:use-module (gnu packages python)
  #:use-module (gnu packages pkg-config)
  #:use-module (guix download)
  #:use-module (guix git-download)
  #:use-module (guix build-system gnu)
  )

(define-public lxc
  (package
    (name "lxc")
    (version "1.1.5")
    (source (origin
              (method url-fetch)
              (uri (string-append "https://linuxcontainers.org/downloads/lxc/lxc-"
                                  version ".tar.gz"))
              (sha256
               (base32
                "1gnhgs4i2zamfdydj895inr9i072658wd47nf1ryw5710hdsv24m"))))
    (build-system gnu-build-system)
    (arguments
     '(#:configure-flags (list "--enable-rpath")
       #:make-flags (list "CC=gcc"
                          (string-append "PREFIX=" %output))))
    (inputs
     `(("lua" ,lua)
        ("python" ,python)))
    (home-page "https://linuxcontainers.org/")
    (synopsis "linux containers")
    (description "LXC is the well known set of tools, templates, library and language bindings. It's pretty low level, very flexible and covers just about every containment feature supported by the upstream kernel.")
    (license license:lgpl2.1+)))